﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="hrEmpAddPhoto.aspx.cs"
    Inherits="ZX.WebApp.Extend.hrEmpAddPhoto" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .main
        {
            width: 100%;
            height: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
        <asp:Image ID="Image1"  runat="server" Height="180px" Width="150px" />
        <p>
            上传图片:<asp:FileUpload ID="FileUpload1" runat="server" />
            <asp:Button ID="Button1" runat="server"
               OnClientClick="return checkClint()" Text="上 传" onclick="Button1_Click"  /></p>
        <script language="javascript" type="text/javascript">
            function checkClint() {
                var getfile = document.getElementById("FileUpload1");

                if (getfile.value == "") {
                    alert('请选择上传文件路径！');
                    getfile.focus();
                    return false;
                } else {
                    return true;
                }
            }

        </script>
    </div>
    </form>
</body>
</html>
